package com.dl.common.enums;

/**
 * 状态标识 枚举类
 *
 * @author hezh
 */
public enum StatusTypeEnum {
    STATUS_FLAG_DELETE(0, "删除"),
    STATUS_FLAG_NORMAL(1, "正常"),

    GOODS_STATUS_TAKE_OF_SHELF(0, "商品下架"),
    GOODS_STATUS_SHELF(1, "商品上架"),

    GOODS_TYPE(1, "普通商品"),

    /**
     * 订单状态：已取消
     */
    ORDER_STATUS_CANCEL(0, "已取消"),
    /**
     * 订单状态：待审核
     */
    ORDER_STATUS_UNDER_REVIEW(1, "待审核"),
    /**
     * 订单状态：待收货
     */
    ORDER_STATUS_UNDER_RECEIVE(2, "待收货"),
    /**
     * 订单状态：待收货
     */
    ORDER_STATUS_SIGN(3, "已签收"),

    USER_RECEIVER_ADDRESS_NORMAL(0, "非默认"),
    USER_RECEIVER_ADDRESS_DEFAULT(1, "默认"),

    /**
     * 订单类型：预订单
     */
    ORDER_TYPE_NORMAL(1, "预订单"),
    /**
     * 订单类型：紧急订单
     */
    ORDER_TYPE_URGENT(2, "紧急订单"),
    ORDER_TYPE_FUPIN(3, "扶贫订单"),

    /**
     * 导入订单状态：待确认
     */
    ORDER_PRE_STATUS_WAIT(0, "待确认"),
    /**
     * 导入订单状态：已确认
     */
    ORDER_PRE_STATUS_CONFIRM(1, "已确认"),

    IMPORT_STATUS_SUCCESS(1, "导入成功"),
    ;


    private final Integer code;
    private final String info;

    StatusTypeEnum(Integer code, String info) {
        this.code = code;
        this.info = info;
    }

    public Integer getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
